#include "gtksnapshot.h"
#include "gtkshortcutmanager.h"
#include "gtkbuildable.h"
+#include "gtktooltipprivate.h"
#include "gtkrender.h"
#include "gtkstylecontextprivate.h"
gtk_popover_update_shape (popover);
g_clear_pointer (&priv->arrow_render_node, gsk_render_node_unref);
}
+
+ gtk_tooltip_maybe_allocate (GTK_NATIVE (popover));
}
static void
break;
}
}
+
+void
+gtk_tooltip_maybe_allocate (GtkNative *native)
+{
+ GdkDisplay *display = gtk_widget_get_display (GTK_WIDGET (native));
+ GtkTooltip *tooltip;
+
+ tooltip = g_object_get_qdata (G_OBJECT (display), quark_current_tooltip);
+ if (!tooltip || GTK_NATIVE (tooltip->native) != native)
+ return;
+
+ gtk_native_check_resize (GTK_NATIVE (tooltip->window));
+}
#include <gtk/gtktooltip.h>
+#include <gtk/gtknative.h>
G_BEGIN_DECLS
gint *widget_x,
gint *widget_y);
+void gtk_tooltip_maybe_allocate (GtkNative *native);
+
G_END_DECLS
#include "gtkwindowgroup.h"
#include "gtkpopovermenubarprivate.h"
#include "gtkcssboxesimplprivate.h"
+#include "gtktooltipprivate.h"
#include "a11y/gtkwindowaccessibleprivate.h"
#include "a11y/gtkcontaineraccessibleprivate.h"
if (child && gtk_widget_get_visible (child))
gtk_widget_size_allocate (child, &child_allocation, -1);
+
+ gtk_tooltip_maybe_allocate (GTK_NATIVE (widget));
}
gboolean